import {http} from '../../http'

//获取角色数据
const getRoleInfo = (params: any) => http.get('/common/roleinfor', params)

//删除数据
const deleteData = (params: any) => http.delete('/common/delete', params)

//新增科室数据
const addDepartment = (params: any) => http.post('/common/addDepartment', params)

//新增科室分类数据
const addClassify = (params: any) => http.post('/common/addclassify', params)

//获取科室数据
const getDepartment = (params: any) => http.get('/common/department', params)

//新增科室分类数据
const addDepartmentInfo = (params: any) => http.post('/common/departmentInfo', params)

//获取科室数据
const getDepartmentInfo = (params: any) => http.get('/common/departmentInfo', params)

export default {
    getRoleInfo,
    deleteData,
    addDepartment,
    addClassify,
    getDepartment,
    addDepartmentInfo,
    getDepartmentInfo
}